package com.cskaoyan.wx.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class CartIndexVO {

    /**
     * cartTotal : {"goodsCount":3,"checkedGoodsCount":0,"goodsAmount":987,"checkedGoodsAmount":0}
     * cartList : [{"id":63,"userId":1,"goodsId":1039051,"goodsSn":"1039051","goodsName":"多功能午睡枕","productId":54,"price":79,"number":1,"specifications":["标准"],"checked":false,"picUrl":"http://yanxuan.nosdn.127.net/c8ca0600fa7ba11ca8be6a3173dd38c9.png","addTime":"2021-05-12 15:38:09","updateTime":"2021-05-12 16:26:31","deleted":false},{"id":66,"userId":1,"goodsId":1181038,"goodsSn":"2145555","goodsName":"喜之郎","productId":357,"price":454,"number":2,"specifications":["的方式"],"checked":false,"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/3bqo10akz4h3iyg6xh9s.png","addTime":"2021-05-12 16:07:08","updateTime":"2021-05-12 16:07:21","deleted":false}]
     */

    private CartTotalBean cartTotal;
    private List<CartListBean> cartList;



    public CartTotalBean getCartTotal() {
        return cartTotal;
    }

    public void setCartTotal(CartTotalBean cartTotal) {
        this.cartTotal = cartTotal;
    }

    public List<CartListBean> getCartList() {
        return cartList;
    }

    public void setCartList(List<CartListBean> cartList) {
        this.cartList = cartList;
    }
    @Data
    public static class CartTotalBean {
        /**
         * goodsCount : 3
         * checkedGoodsCount : 0
         * goodsAmount : 987
         * checkedGoodsAmount : 0
         */

        private int goodsCount;
        private int checkedGoodsCount;
        private Double goodsAmount;
        private Double checkedGoodsAmount;

    }
    @Data
    public static class CartListBean {
        /**
         * id : 63
         * userId : 1
         * goodsId : 1039051
         * goodsSn : 1039051
         * goodsName : 多功能午睡枕
         * productId : 54
         * price : 79
         * number : 1
         * specifications : ["标准"]
         * checked : false
         * picUrl : http://yanxuan.nosdn.127.net/c8ca0600fa7ba11ca8be6a3173dd38c9.png
         * addTime : 2021-05-12 15:38:09
         * updateTime : 2021-05-12 16:26:31
         * deleted : false
         */

        private int id;
        private int userId;
        private int goodsId;
        private String goodsSn;
        private String goodsName;
        private int productId;
        private Double price;
        private int number;
        private String[] specifications;
        private Boolean checked;
        private String picUrl;
        //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date addTime;
        //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date updateTime;
        private Boolean deleted;

    }
}
